#include "threadPool.h"
int recvn(int sockfd,void *buf,int length)
{            
    int total=0;
    char * map=(char *)buf;
    while(total<length)
    {//从哪里接受   接受的位置     接受多长   
        ssize_t ret=recv(sockfd,map+total,length-total,0);
        total+=ret;
    }        
    return total;
}            

